import http from '@/utils/http'

// 查询操作日志列表
export function list (params) {
  return http({
    url: '/system/log/list',
    method: 'post',
    data: http.adornData(params)
  })
}

// 删除操作日志
export function delLog (operIds) {
  return http({
    url: '/system/log/delete/' + operIds,
    method: 'post'
  })
}

// 清空操作日志
export function cleanLog () {
  return http({
    url: '/system/log/clean',
    method: 'post'
  })
}

// 导出操作日志
export function exportLog(query, filename) {
  return http.download('system/log/export', { ...query }, filename)
}
